# lco Autoconf configuration script
# Copyright (C) 2018 Ariadne Devos
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

AC_PREREQ([2.69])
AC_INIT([lco], [0.1.0], [m-m@mailoo.org], [lco], [https://notabug.org/ariadne/lco])
AC_COPYRIGHT([Copyright (C) Ariadne Devos])
AC_CONFIG_SRCDIR([lco.h])
AC_CONFIG_AUX_DIR([build-aux])

AM_PROG_AR
AM_PROG_AS
AC_PROG_CC

LT_PREREQ([2.4.6])
LT_INIT([pic-only])

AC_CANONICAL_HOST
# There may exist multiple ABI's for the same architecture
AS_CASE([$host],
  [x86_64-*-linux-*], [ABI=x86-64],
  [AC_MSG_ERROR([unsupported system $host], [1])]
)
AC_SUBST([ABI])

AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
  Makefile
])
AC_OUTPUT
